﻿@model IEnumerable<MobileSales.Model.Orders.OrderStatus>

@{
    View.Title = Strings.OrderStatuses;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>@Strings.OrderStatuses</h2>

<p>
    @Html.ActionLink(Strings.CreateNew, "Create", null, new { @class = "icon-button add-icon" })
</p>
<table class="datatable">
    <thead>
    <tr>
        <th style="width:160px"></th>
        <th>
            @ModelStrings.Name
        </th>
    </tr></thead>
    <tbody>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(Strings.Edit, "Edit", new { id = item.Id }, new { @class = "icon-button edit-icon" }) |
            @Html.ActionLink(Strings.Delete, "Delete", new { id = item.Id }, new { @class = "icon-button delete-icon" })
        </td>
        <td>
            @item.Name
        </td>
    </tr>
}
</tbody>
</table>

